From: Jonas Dreßler Date: Mon, 10 Feb 2020 14:27:34 +0000 (+0100) Subject: blur-effect: Remove modify_paint_volume vfunc override X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~91 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7c8ed95330ae3a15d772d1cad4a749d5dc3d5194;p=gnome-shell.git blur-effect: Remove modify_paint_volume vfunc override If we modify the paint volume to make it larger and include the blur radius, we should also use the gained size and draw something there. Since the framebuffers are only the size of the actor to blur, we're not doing that right now anyway, so remove the vfunc override. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/991 --- diff --git a/src/shell-blur-effect.c b/src/shell-blur-effect.c index 01dd797bd..ffabff114 100644 --- a/src/shell-blur-effect.c +++ b/src/shell-blur-effect.c @@ -827,32 +827,6 @@ fail: clutter_actor_continue_paint (self->actor, paint_context); } -static gboolean -shell_blur_effect_modify_paint_volume (ClutterEffect *effect, - ClutterPaintVolume *volume) -{ - ShellBlurEffect *self = SHELL_BLUR_EFFECT (effect); - graphene_point3d_t origin; - float width; - float height; - - clutter_paint_volume_get_origin (volume, &origin); - width = clutter_paint_volume_get_width (volume); - height = clutter_paint_volume_get_height (volume); - - origin.y -= self->sigma; - origin.x -= self->sigma; - - height += 2 * self->sigma; - width += 2 * self->sigma; - - clutter_paint_volume_set_origin (volume, &origin); - clutter_paint_volume_set_width (volume, width); - clutter_paint_volume_set_height (volume, height); - - return TRUE; -} - static void shell_blur_effect_finalize (GObject *object) { @@ -941,7 +915,6 @@ shell_blur_effect_class_init (ShellBlurEffectClass *klass) meta_class->set_actor = shell_blur_effect_set_actor; effect_class->paint = shell_blur_effect_paint; - effect_class->modify_paint_volume = shell_blur_effect_modify_paint_volume; properties[PROP_SIGMA] = g_param_spec_int ("sigma",